home *** CD-ROM | disk | FTP | other *** search
/ Spiceworld The Movie - Interactive CD-ROM / Spiceworld The Movie: Interactive CD-ROM.iso / pc / elements / spicetwo.dir / scripts_12_main game.ls < prev    next >
Encoding:
Text File  |  1997-12-04  |  733 b   |  35 lines

  1. on prepareFrame
  2.   global LOOPFRAME, BOARDPOS
  3.   if not (LOOPFRAME = the frameLabel) then
  4.     initialiseFrame()
  5.     set the visible of sprite 15 to 0
  6.     set the visible of sprite 16 to 0
  7.     set the visible of sprite 14 to 0
  8.     set the visible of sprite 55 to 0
  9.     setScore()
  10.     setBoardPos()
  11.     unLoad()
  12.   end if
  13. end
  14.  
  15. on enterFrame
  16.   global GAMESDONE, score, BOMBRATE
  17.   set vis to the visible of sprite 13
  18.   set the visible of sprite 13 to not vis
  19.   set the visible of sprite 15 to not vis
  20.   set the visible of sprite 16 to vis
  21.   if the movieTime of sprite 54 > (the duration of sprite(54) - 3600) then
  22.     blowUp()
  23.   end if
  24.   checkRollOvers()
  25. end
  26.  
  27. on exitFrame
  28.   go(the frame)
  29. end
  30.  
  31. on blowUp
  32.   go("blow up")
  33.   updateStage()
  34. end
  35.